package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommentService {
    //根据游记的ID查询用户对游记的评论
    PageInfo getPageInfo(CommentQueryObject qo);
    //保存用户对游记的评论
    Comment saveTravelComment(Comment comment);

    int getCommentLikeNums(long commentId);

    Comment get(Long id);

    List<Comment> getUserTravelComment(Long userId);

    List<Comment> selectCommentMe(String authorNickName);

    List<Comment> selectNoCommentMe(String authorNickName);

    void updateCommentMe(String authorNickName,Long[] ids);
}
